package han;

import java.util.Scanner;

public class J01MyAge {

	public static void main(String[] args) {
		int birth;
		int year;
		int korage;
		
		Scanner sc = null;
		 sc = new Scanner(System.in);
		 System.out.println("태어나신 연도를 입력하세요");
		 birth = sc.nextInt();
		 System.out.println("현재 연도를 입력하세요");
		 year =  sc.nextInt();
			korage = (year - birth) +1;
		System.out.println("나이는 = " +korage+"살 입니다");
		sc.close();

	}

}
